package com.len.entity;

import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = "agent")
public class AgentEntity {

    @Transient
    private String link;

    @Transient
    private String link1;

    @Field("id")
    private String id;

    private Long createTime = System.currentTimeMillis()/1000;

    private String name;

    private String username;

    //0普通代理 1总代理
    private Integer generalAgent = 0;

    //0-100
    private Integer discount;

}
